import request from "../utils/index"
//获取图片列表
export function getImg(data?: object) {
    return request({
        method: 'GET',
        url: 'http://localhost:3001/zl/getimg',
        data
    })
}
//获取音乐列表
export function getMusic(data?: object) {
    return request({
        method: 'GET',
        url: 'http://localhost:3001/zl/getmusic',
        data
    })
}
//音乐列表模糊搜索
export function searchMusic(data?: object) {
    return request({
        method: 'POST',
        url: 'http://localhost:3001/zl/searchmusic',
        data
    })
}
//获取视屏列表
export function getVideo(data?: object) {
    return request({
        method: 'GET',
        url: 'http://localhost:3001/zl/getvideo',
        data
    })
}
//将数据添加到后台
//获取上传图片列表
export function getPhoto(data?: object) {
    return request({
        method: 'GET',
        url: 'http://localhost:3001/zl/getPhoto',
        data
    })
}
//是否上传图片
export function isphoto(data?: object) {
    return request({
        method: 'POST',
        url: 'http://localhost:3001/zl/isphoto',
        data
    })
}
//获取上传音乐列表
export function getlineMusic(data?: object) {
    return request({
        method: 'GET',
        url: 'http://localhost:3001/zl/getlinemusic',
        data
    })
}
//是否上传音乐
export function ismusic(data?: object) {
    return request({
        method: 'POST',
        url: 'http://localhost:3001/zl/ismusic',
        data
    })
}
//获取上传文字列表
export function getwords(data?: object) {
    return request({
        method: 'GET',
        url: 'http://localhost:3001/zl/getwords',
        data
    })
}
//是否上传文字
export function iswords(data?: object) {
    return request({
        method: 'POST',
        url: 'http://localhost:3001/zl/iswords',
        data
    })
}
//获取上传视频列表
export function getlinevedio(data?: object) {
    return request({
        method: 'GET',
        url: 'http://localhost:3001/zl/getlinevedio',
        data
    })
}
//是否上传视频
export function isvedio(data?: object) {
    return request({
        method: 'POST',
        url: 'http://localhost:3001/zl/isvedio',
        data
    })
}
//添加合集
export function addcollect(data?: object) {
    return request({
        method: 'POST',
        url: 'http://localhost:3001/zl/addcollect',
        data
    })
}
//获取合集列表
export function getcollect(data?: object) {
    return request({
        method: 'GET',
        url: 'http://localhost:3001/zl/getcollect',
        data
    })
}
//拍摄图片1
export function base64(data?: object) {
    // console.log(params)
    return request({
        method: 'post',
        url: 'http://localhost:3001/zl/base64ToFile',
        data
    })
}
//拍摄图片2
export function base642(data?: object) {
    // console.log(params)
    return request({
        method: 'post',
        url: 'http://localhost:3001/zl/base64ToFile2',
        data
    })
}


//图片上传3
export function big1(data?: object) {
    // console.log(params)
    return request({
        method: 'post',
        url: 'http://localhost:3001/zl/upload_chunk',
        data
    })
}
//图片上传4
export function big2(data?: object) {
    // console.log(params)
    return request({
        method: 'post',
        url: 'http://localhost:3001/zl/upload_merge',
        data
    })
}
//图片上传5
export function upload(data?: object) {
    // console.log(params)
    return request({
        method: 'post',
        url: 'http://localhost:3001/zl/upload',
        data
    })
}

//图片合并6
export function merge(params?: object) {
    // console.log(params)
    return request({
        method: 'get',
        url: 'http://localhost:3001/zl/merge',
        params
    })
}
//合并好的图片添加到数据库
export function addimg(data?: object) {
    // console.log(params)
    return request({
        method: 'post',
        url: 'http://localhost:3001/zl/addimg',
        data
    })
}
//录制视频添加视频
export function addvideo(data?: object) {
    // console.log(params)
    return request({
        method: 'post',
        url: 'http://localhost:3001/zl/addvideo',
        data
    })
}
//----
//视频切片
export function videobig1(data?: object) {
    // console.log(params)
    return request({
        method: 'post',
        url: 'http://localhost:3001/zl/videoupload_chunk',
        data
    })
}
//视频上传
export function videobig2(data?: object) {
    // console.log(params)
    return request({
        method: 'post',
        url: 'http://localhost:3001/zl/videoupload_merge',
        data
    })
}
//视频上传
export function videoupload(data?: object) {
    // console.log(params)
    return request({
        method: 'post',
        url: 'http://localhost:3001/zl/videoupload',
        data
    })
}

//视频合并
export function videomerge(params?: object) {
    // console.log(params)
    return request({
        method: 'get',
        url: 'http://localhost:3001/zl/videomerge',
        params
    })
}


//后台
// 修改数据
export function zlchange(data?: object) {
    return request({
        method: 'post',
        url: 'http://localhost:3001/zl/change',
        data
    })
}
export function zlchangevideo(data?: object) {
    return request({
        method: 'post',
        url: 'http://localhost:3001/zl/changevideo',
        data
    })
}
export function zlchangeimg(data?: object) {
    return request({
        method: 'post',
        url: 'http://localhost:3001/zl/changeimg',
        data
    })
}
export function zlchangewords(data?: object) {
    return request({
        method: 'post',
        url: 'http://localhost:3001/zl/changewords',
        data
    })
}
export function addworklist(data?: object) {
    return request({
        method: 'post',
        url: 'http://localhost:3001/zl/addworklist',
        data
    })
}